-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
--[[




]]--
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

AddPlayerPostInit(function(inst)
    ------------------------------------------------------------------------------------------------------
    --- 初始化切换
        inst.AnimState:SetClientSideBuildOverrideFlag("loramia_building_inspectaclesbox_searching", false)
    ------------------------------------------------------------------------------------------------------
    if not TheWorld.ismastersim then
        return
    end
    
    if inst.components.loramia_data == nil then
        inst:AddComponent("loramia_data")
    end
    if inst.components.loramia_com_rpc_event == nil then
        inst:AddComponent("loramia_com_rpc_event")
    end
    if inst.components.loramia_com_item_spell_controller == nil then
        inst:AddComponent("loramia_com_item_spell_controller")
        inst:ListenForEvent("loramia_event.spell_ring_opened",function()
            inst.components.loramia_com_item_spell_controller:Cancel()
        end)
    end
    if inst.components.loramia_com_spell_controller == nil then
        inst:AddComponent("loramia_com_spell_controller")
    end

end)

